<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>管理系统</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  {:widget_st('layui','css')}
  {:widget_st('admin','css')}
  {:widget_st('jq','js')}
</head>
{:do_action('admin_head')}
<style>
  @media screen and (min-width:1200px) {
    .list_item{
      width: 800px;
    }
  }
  .list_item>.layui-form-item:first-child{
    margin-bottom:0px;
  }
</style>
<?php $form_widget = new \app\common\widget\FormPro();  ?>
<body>
  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md12">

        <div class="layui-card">
          <div class="layui-card-header layuiadmin-card-header-auto">
          </div>
          <div class="layui-card-body" pad15>

            <form class="info_tj" >
              <div class="layui-form-item">
                <div class="layui-input-block_">
                  <a href="javascript:;" class="layui-btn layui-btn-sm  layui-bg-red"  onclick="tijiao_data2('/admin/config/zf_auth',0)" >ZFCMS=====>Key/Sc转换</a>
                </div>
              </div>
              <div class="layui-form" wid100 lay-filter="">
                    <blockquote class="layui-elem-quote" style="text-align: center;">
                     非开发人员,请勿修改
                    </blockquote>
                  <div  class="list_item" >
                    {$form_widget->form_input(['title'=>'邮箱','name'=>'email','readonly'=>1,'data'=>isset_arr_key($config,'email',''),'theme'=>2])|raw}
                    {$form_widget->form_note(['data'=>'<span class="layui-badge_  layui-bg-cyan_ "></span>','theme'=>2])|raw}
                  </div>
                  <div  class="list_item" >
                    {$form_widget->form_input(['title'=>'KEY','name'=>'key','readonly'=>1,'data'=>isset_arr_key($config,'key',''),'theme'=>2])|raw}
                    {$form_widget->form_note(['data'=>'<span class="layui-badge_  layui-bg-cyan_ "></span>','theme'=>2])|raw}
                  </div>

                  <div  class="list_item" >
                    {$form_widget->form_textarea(['title'=>'SC','name'=>'sc','readonly'=>1,'data'=>isset_arr_key($config,'sc',''),'theme'=>2])|raw}
                    {$form_widget->form_note(['data'=>'<span class="layui-badge_  layui-bg-cyan_ "></span>','theme'=>2])|raw}
                  </div>

                
                
                


                


              </div>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>

  {:widget_st('layui','js')}  
  {:widget_st('common','js')} 

  <script>
 layui.define(['form', 'upload'], function(exports){
  var $ = layui.$
  ,layer = layui.layer
  ,laytpl = layui.laytpl
  ,setter = layui.setter
  ,view = layui.view
  ,admin = layui.admin
  ,form = layui.form
  ,upload = layui.upload;
 
    window.tijiao_data2 = function(role,type=1){
      var index = layer.load(2);
      var data = $(".info_tj input,.info_tj select,.info_tj textarea,.info_tj radio").serialize();      
          $.ajax({
            type:'post',
            url:role,
            data:data,
            dataType:'json',
            success:function(res){
              console.log(res)
              if(res.result==1){
                layer.msg(res.msg, {icon: 1});
                layer.close(index)
                setTimeout(function() {
                  location.reload();
                }, 2000);
              }else{
                layer.msg(res.msg, {icon: 2});
                layer.close(index)
              }   
            }
          })
    }
   

 })
  </script>
</body>
</html>
{:do_action('admin_js')}